package com.Business.service;

import com.Business.dao.ReportDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by XingYang on 2019/3/28.
 */
@Service
public class ReportServiceImpl implements ReportService {

    @Autowired
    ReportDao reportDao;
    @Override
    public void addReport(Map map) {
        reportDao.addReport(map);
    }

    @Override
    public void updateReport(Map map) {
        reportDao.updateReport(map);
    }

    @Override
    public Map getReport(String objId) {
        return reportDao.getReport(objId);
    }

    /**
     * map 中key 需包含 objId state
     * @param map
     */
    @Override
    public void changeState(Map map) {
        reportDao.changeState(map);
    }
}
